/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.cricketgame.conf;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.cricketgame.cricketgame.Cricket;
import za.ac.cput.cricketgame.cricketgame.Impl.CricketImpl;
/**
 *
 * @author Matthew
 */

@Configurable
public class GameConfig {
    
    @Bean (name = "oldgame")
    public CricketImpl cricket(){
        return new CricketImpl();
    }
    
    @Bean 
    public CricketImpl currentGame(){
        return new CricketImpl();
    }
    
   /* @Bean (name = "newGame")
    public CricketImpl cricket(){
        return new CricketImpl();
    }*/
}
